import http from "../../common/http.js";

/**
 * @des 砍价配置
 */
export function cutPriceConf(data, needLoading) {
  return http.GET("/activity/cut-price-conf", data, needLoading);
}

/**
 * @des 砍价活动信息
 * activity_id
 */
export function cutPriceInfo(data, needLoading) {
  return http.GET("/activity/cut-price-info", data, needLoading);
}

/**
 * @des 砍价活动商品列表
 * activity_id 
    cat_id 
    goods_name 
 */
export function cutPriceGoodsList(data, needLoading) {
  return http.GET("/activity/cut-price-goods-list", data, needLoading);
}

/**
 * @des 砍价订单列表
 */
export function cutPriceOrderList(data, needLoading) {
  return http.GET("/activity/cut-price-order-list", data, needLoading);
}

/**
 * @des 帮砍列表
 * order_id
 */
export function cutPriceLogList(data, needLoading) {
  return http.GET("/activity/cut-price-log-list", data, needLoading);
}

/**
 * @des 砍价订单创建（包含预览订单接口参数）
 * activity_id
 * goods_id
 */
export function cutPriceOrderCreate(data, needLoading) {
  return http.GET("/activity/cut-price-order-create", data, needLoading);
}

/**
 * @des 砍价订单详情 砍价订单创建后调用
 * order_id
 */
export function cutPriceOrderInfo(data, needLoading) {
  return http.POST("/activity/cut-price-order-info", data, needLoading);
}

/**
 * @des 此商品进行中的砍价订单
 * activity_id
 * goods_id
 */
export function cutPriceOrderByGoodsId(data, needLoading) {
  return http.GET("/activity/cut-price-order-by-goods-id", data, needLoading);
}
